import request from '@/utils/request'
// //  网点账单-各费用项收支
// export const TendencyApi = (data) => {
//   return request({
//     url: '/hq/billCollect/billDataShow',
//     method: 'post',
//     data
//   })
// }
// //  网点账单-近七天趋势
// export const TendencyApi2 = (costBigKindId) => {
//   return request({
//     url: `/hq/billCollect/nearlySevenDay/${costBigKindId}`,
//     method: 'get'
//   })
// }

// 出港发件成本报表明细
export const contractAreaDetail = (data) => {
  return request({
    url: '/hq/billDetail/point',
    method: 'post',
    data
  })
}
export function exportAreaDetail(data) {
  return request({
    responseType: 'blob',
    url: '/exportUtils/scOutExport',
    method: 'post',
    data
  })
}
// 进港派件毛利表明细
export const inboundgrossprofitDetail = (data) => {
  return request({
    url: '/sc/paiGrossProfitSheet/point',
    method: 'post',
    data
  })
}
export function exportigpDetail(data) {
  return request({
    responseType: 'blob',
    url: '/exportUtils/scPaiGrossProfitSheet',
    method: 'post',
    data
  })
}
// 质控费用汇总报表明细
export const qualitycontrolcostsdetail = (data) => {
  return request({
    url: '/sc/qualityControlFee/point',
    method: 'post',
    data
  })
}
export function exportqccDetail(data) {
  return request({
    responseType: 'blob',
    url: '/exportUtils/scQualityPoint',
    method: 'post',
    data
  })
}
// 质控费用汇总报表获取结算网点名称
export function undatecbname() {
  return request({
    url: '/hq/clientRelation/selectBigClient',
    method: 'get'
  })
}
// 质控费用汇总报表修改承包网点名称
export function updateDetailcbname(data) {
  return request({
    url: '/hq/billDetail/updateSetClient',
    method: 'post',
    data
  })
}
// 总部收支汇总报表明细
export const paymentsreportdetail = (data) => {
  return request({
    url: '/sc/hqIncomeAndExpend/point',
    method: 'post',
    data
  })
}
export function exportprdetail(data) {
  return request({
    responseType: 'blob',
    url: '/exportUtils/scIncomeExpendPoint',
    method: 'post',
    data
  })
}
// 出港包仓毛利报表明细
export const packagegrossprofitdetail = (data) => {
  return request({
    url: '/sc/outPortWarehouseGrossProfitSheet/point',
    method: 'post',
    data
  })
}
export function exportpgpdetail(data) {
  return request({
    responseType: 'blob',
    url: '/exportUtils/scOutPortWarehousePoint',
    method: 'post',
    data
  })
}
// 流向均重监控表明细
export const flowdirectiondetail = (data) => {
  return request({
    url: '/sc/monitoring/point',
    method: 'post',
    data
  })
}
export function exportfddetail(data) {
  return request({
    responseType: 'blob',
    url: '/exportUtils/scWeightFlowPoint',
    method: 'post',
    data
  })
}
// 出港返利毛利报表明细
export const outboundgrossprofitdetail = (data) => {
  return request({
    url: '/sc/outReturnSheet/point',
    method: 'post',
    data
  })
}
export function exportogpdetail(data) {
  return request({
    responseType: 'blob',
    url: '/exportUtils/scOutReturnPoint',
    method: 'post',
    data
  })
}
// 网点账单明细插入
export const detailInsert = (data) => {
  return request({
    url: '/hq/billDetail/insert',
    method: 'post',
    data
  })
}

// 饼状图和七天数据
export const ChartData = (data) => {
  return request({
    url: '/hq/billCollect/cardAndSeven',
    method: 'post',
    data
  })
}

//  网点账单-数据汇总
export const DataSummaryApi = (date) => {
  return request({
    url: '/hq/billCollect/collect',
    method: 'post',
    data: date
  })
}
//  网点账单-网点大类
export const CostBigKindApi = () => {
  return request({
    url: '/hq/costKind/oneLevel',
    method: 'get'
  })
}

//  网点账单明细-查全部
export const DetailApi = (pageNum, pageSize) => {
  return request({
    url: `/hq/billDetail/selectAll?pageNum=${pageNum}&pageSize=${pageSize}`,
    method: 'get'
  })
}
//  网点账单明细-搜索
export const DetailSearchApi = (data) => {
  return request({
    url: '/hq/billDetail/search',
    method: 'post',
    data
  })
}
//  网点账单-网点小类
export const CostSmallKindApi = () => {
  return request({
    url: '/hq/costKind/twoLevel',
    method: 'get'
  })
}
//  网点账单-费用名称
export const FeeNameApi = () => {
  return request({
    url: '/hq/costKind/threeLevel',
    method: 'get'
  })
}
//  网点账单-费用类别
export const FeeNameApi1 = () => {
  return request({
    url: '/hq/costKind/selectAll',
    method: 'get'
  })
}
//  网点账单-结算科目
export const SettlementApi = () => {
  return request({
    url: '/hq/settleSynthesize/subject',
    method: 'get'
  })
}
//  网点账单-费用子项
export const FeeSubitemApi = () => {
  return request({
    url: '/hq/costSubitem/selectAll',
    method: 'get'
  })
}
//  网点账单-根据网点大类查小类
export const CostSmallKindByBigApi = (name) => {
  return request({
    url: '/hq/costKind/selectByParentId',
    method: 'get',
    params: {
      name
    }
  })
}
//  网点账单-揽件员
export const TakeManApi = () => {
  return request({
    url: '/hq/solicitor/selectAll',
    method: 'get'
  })
}
//  网点财务-显示承包区
export const ShowCoverAreaApi = () => {
  return request({
    url: '/network/name/selectContractArea',
    method: 'get'
  })
}
//  网点财务-显示网点下的承包区
export const ShowCoverAreaByNetApi = (parentId) => {
  return request({
    url: `/network/name/selectByNetworkId?parentId=${parentId}`,
    method: 'get'
  })
}
//  网点账单明细-查询金额汇总
export const SumSummaryApi = (data) => {
  return request({
    url: '/hq/billDetail/collectAmount',
    method: 'post',
    data
  })
}
//  结算账户余额查询
export const BalanceInquiryApi = (data) => {
  return request({
    url: '/hq/settleAccountBalance/search',
    method: 'post',
    data
  })
}
//  结算账户交易明细-基本户账户交易明细
export const BasicAccountApi = (data) => {
  return request({
    url: '/hq/accountDeal/search',
    method: 'post',
    data
  })
}
//  结算账户交易明细-代收货款账户交易明细
export const BasicAccountApi1 = (data) => {
  return request({
    url: '/hq/replaceGoodsDealDetail/search',
    method: 'post',
    data
  })
}
//  结算账户交易明细-基金账户交易明细
export const BasicAccountApi2 = (data) => {
  return request({
    url: '/hq/baseAccountDeal/search',
    method: 'post',
    data
  })
}
//  网点账单-费用科目
export const CostKindApi = () => {
  return request({
    url: '/hq/costSubject/selectAll',
    method: 'get'
  })
}
//  业务类型
export const BusinessTypeApi = () => {
  return request({
    url: '/hq/businessType/selectAll',
    method: 'get'
  })
}
//  有偿件量统计
export const PaidPiecesApi = (data) => {
  return request({
    url: '/hq/paidPackageStatistics/collect',
    method: 'post',
    data
  })
}
//  有偿结算明细查询
export const PaidSettlementApi = (data) => {
  return request({
    url: '/hq/paidSettlementDetail/search',
    method: 'post',
    data
  })
}
// export const getSubject = (data) => {
//   return request({
//     url: '/hq/settleSynthesize/subject',
//     method: 'post',
//     data
//   })
// }
//  派费综合报表-科目汇总
export const ToSenderApi = (data) => {
  return request({
    url: '/hq/settleSynthesize/subject',
    method: 'post',
    data
  })
}
//  派费综合报表-科目汇总-向寄件方收
// export const ToSenderApi = (data) => {
//   return request({
//     url: '/hq/settleSynthesize/paiFeeSubjectByReceive',
//     method: 'post',
//     data
//   })
// }
//  派费综合报表-科目汇总-向派件方付
// export const ToSenderApi1 = (data) => {
//   return request({
//     url: '/hq/settleSynthesize/paiFeeSubjectByPay',
//     method: 'post',
//     data
//   })
// }
//  派费综合报表-费用子项汇总-费用子项列表
export const FeeSubItemApi1 = () => {
  return request({
    url: '/hq/settleSynthesize/channel',
    method: 'get'
  })
}
// /hq/settleSynthesize/collectPaiFeeByChannel
//  派费综合报表-费用子项汇总
export const ExpenseSubitemApi = (data) => {
  return request({
    url: '/hq/settleSynthesize/collectPaiFeeByChannel',
    method: 'post',
    data
  })
}
//  特价业务报表
export const SpecialPriceApi = (data) => {
  return request({
    url: '/hq/bargainPrice/collect',
    method: 'post',
    data
  })
}
//  新业务员报表-业务员账单报表
export const ClerksBillApi = (data) => {
  return request({
    url: '/hq/newSalesman/newSalesmanSheet',
    method: 'post',
    data
  })
}
//  新业务员报表-网点汇总
export const BranchesPaFeiApi = (data) => {
  return request({
    url: '/hq/newSalesman/collectA',
    method: 'post',
    data
  })
}
//  新业务员报表-网点+承包区汇总
export const BranchesPaFeiApi1 = (data) => {
  return request({
    url: '/hq/newSalesman/collectB',
    method: 'post',
    data
  })
}
//  新业务员报表-网点+承包区+业务员汇总
export const BranchesPaFeiApi2 = (data) => {
  return request({
    url: '/hq/newSalesman/collectC',
    method: 'post',
    data
  })
}
//  派费考核报表
export const PaiFeeKhApi = (data) => {
  return request({
    url: '/hq/paidSettlement/collect',
    method: 'post',
    data
  })
}
//  共配业务结算报表
export const GongPeiApi = (data) => {
  return request({
    url: '/hq/togetherBusiness/collect',
    method: 'post',
    data
  })
}
//  平台账单报表-丰巢面单
// export const RichNestApi = (data) => {
//   return request({
//     url: '/hq/togetherBusiness/collectFC',
//     method: 'post',
//     data
//   })
// }
//  平台账单报表-快宝面单
export const RichNestApi = (data) => {
  return request({
    url: '/hq/platformBillSheet/collectKB',
    method: 'post',
    data
  })
}
//  总部财务-转运中心
export const TransferCenterApi = () => {
  return request({
    url: '/hq/transferCentre/selectAll',
    method: 'get'
  })
}
//  中转费报表-汇总层级-网点
export const SummaryLevelApi1 = (data) => {
  return request({
    url: '/hq/transferSheet/network',
    method: 'post',
    data
  })
}
//  中转费报表-汇总层级-承包区
export const SummaryLevelApi2 = (data) => {
  return request({
    url: '/hq/transferSheet/contractArea',
    method: 'post',
    data
  })
}
//  中转费报表-汇总层级-运转中心
export const SummaryLevelApi3 = (data) => {
  return request({
    url: '/hq/transferSheet/transferCentre',
    method: 'post',
    data
  })
}
//  中转费报表-汇总层级-网点+运转中心
export const SummaryLevelApi4 = (data) => {
  return request({
    url: '/hq/transferSheet/collect',
    method: 'post',
    data
  })
}
//  中转运单明细查询
export const TransitBillApi = (data) => {
  return request({
    url: '/hq/togetherBusiness/search',
    method: 'post',
    data
  })
}
//  包干结算报表-包干费日预收
export const LieuDayAdvanceApi = (data) => {
  return request({
    url: '/hq/baoGanSettleSheet/dayPre',
    method: 'post',
    data
  })
}
//  包干结算报表-包干费日调整
export const LieuDayAdvanceApi1 = (data) => {
  return request({
    url: '/hq/baoGanSettleSheet/dayAdjust',
    method: 'post',
    data
  })
}
//  包干结算报表-包干费月调整
export const LieuDayAdvanceApi2 = (data) => {
  return request({
    url: '/hq/baoGanSettleSheet/monthAdjust',
    method: 'post',
    data
  })
}
//  包干结算报表-日回冲
export const LieuDayAdvanceApi3 = (data) => {
  return request({
    url: '/hq/baoGanSettleSheet/backwash',
    method: 'post',
    data
  })
}
//  新出港操作费报表
export const NewDepartureOperationApi = (data) => {
  return request({
    url: '/hq/newDepartureOperateFeeSheet/collect',
    method: 'post',
    data
  })
}
//  集包费报表
export const PackageChargeReportApi = (data) => {
  return request({
    url: '/hq/packageChargeFee/collect',
    method: 'post',
    data
  })
}
//  操作装卸费报表-操作装卸费报表
export const HandlingChargesApi = (data) => {
  return request({
    url: '/hq/operateHandling/collect',
    method: 'post',
    data
  })
}
//  操作装卸费报表-操作装卸费明细
export const HandlingChargesApi1 = (data) => {
  return request({
    url: '/hq/operateHandling/search',
    method: 'post',
    data
  })
}
//  中转计泡报表-预收+调整
export const TransMeterBubbleApi = (data) => {
  return request({
    url: '/hq/transferBubble/collectPreAdjust',
    method: 'post',
    data
  })
}
//  中转计泡报表-汇总按发件量统计
export const TransMeterBubbleApi1 = (data) => {
  return request({
    url: '/hq/transferBubble/collectBySentNum',
    method: 'post',
    data
  })
}
//  中转差重报表
export const DifferenceWeighApi = (data) => {
  return request({
    url: '/hq/differenceWeight/search',
    method: 'post',
    data
  })
}
//  进港操作费报表
export const EnterOperateApi = (data) => {
  return request({
    url: '/hq/enterOperate/collect',
    method: 'post',
    data
  })
}
//  退件操作费报表
export const ReturnOperateApi = (data) => {
  return request({
    url: '/hq/returnOperate/collect',
    method: 'post',
    data
  })
}
// 退件中转费报表-汇总
export const ReturnTransferFeeApi = (data) => {
  return request({
    url: '/hq/returnTransferFee/collect',
    method: 'post',
    data
  })
}
// 退件中转费报表-明细
export const ReturnTransferFeeApi1 = (data) => {
  return request({
    url: '/hq/returnTransferFee/search',
    method: 'post',
    data
  })
}
// 异形件结算报表-异形件
export const specialApedPartApi = (data) => {
  return request({
    url: '/hq/specialHapedPart/collectOne',
    method: 'post',
    data
  })
}
// 异形件结算报表-异形包
export const specialApedPartApi1 = (data) => {
  return request({
    url: '/hq/specialHapedPart/collectTwo',
    method: 'post',
    data
  })
}
// 其他费用报表-前两条
export const ShortBargeFeeApi = (data) => {
  return request({
    url: '/hq/otherFee/shortBargeFee',
    method: 'post',
    data
  })
}
// 其他费用报表-后三条
export const ShortBargeFeeApi1 = (data) => {
  return request({
    url: '/hq/otherFee/lastThree',
    method: 'post',
    data
  })
}
// 新面单返利报表
export const NewSheetRebateApi = (data) => {
  return request({
    url: '/hq/newSheetRebate/collect',
    method: 'post',
    data
  })
}
// 新面单返利报表-U码商家名列表
export const UCodeApi = () => {
  return request({
    url: '/hq/UCode/selectAll',
    method: 'get'
  })
}
// 新面单返利报表-大客户名列表
export const ClientTagApi = () => {
  return request({
    url: '/network/clientTag/findBigClient',
    method: 'get'
  })
}
// 网点账单确认
export const BillVerifyApi = (data) => {
  return request({
    url: '/hq/billVerify/collect',
    method: 'post',
    data
  })
}

// 总部下载查询
export const Download = (data) => {
  return request({
    url: '/hq/exportInfo/search',
    method: 'post',
    data
  })
}
